package gfo

/*Matchship
* ---------------------------------
* Matchship is only implemented as an intermediary class between Player and Match. It has no
* functionality in the way of views or controllers, and thus does not crop up much in application
* itself.*/
class Matchship {
    int id
    Player player
    Fighter character
    Match match
    boolean winner

    String toString(){
        "$player.fullName, ${character?.name}, ${match.toString()}"
    }

    static constraints = {
        character(nullable: true)
    }
}
